effectives=0
ps aux|grep fb_monitor.py > total_fb_monitor_processes
grep -v 'grep' total_fb_monitor_processes > effective_fb_monitor_processes


while read line effective_fb_monitor_processes
do effectives=$(($effectives+1))
done < effective_fb_monitor_processes

echo 'ciao'

if [ $effectives != 1 ]; then 
  cd ..
  ./connetti.sh
fi 
